import { createRouter, createWebHistory } from 'vue-router'
// import Vue from 'vue'
// import Router from 'vue-router'

import news from '@/components/newspage/index.vue'

// Vue.use(Router);

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/Home/index.vue')
    },
    {
      path: '/news',
      name: 'new',
      component: news
    }
  ]
})

export default router
